/*
 * Created with IDEA.
 * Description: A fully open-sourced high performance unibody close-loop driver for
 * Step-Motor, which was used in my DummyRobot project:
 * https://github.com/peng-zhihui/Dummy-Robot
 * Based on XDrive project: https://github.com/unlir/XDrive
 * @Author: Pengzhihui
 * @Date: ${DATE} ${TIME}
 *
 */

//
// Created by deng on 2022/12/25.
//

#ifndef MOTOR_S_ENCODER_CALIBRATOR_STM32_H
#define MOTOR_S_ENCODER_CALIBRATOR_STM32_H
#include "encoder_calibrator_base.h"

class EncoderCalibrator : public EncoderCalibratorBase
{
public:
    explicit EncoderCalibrator(Motor* _motor) : EncoderCalibratorBase(_motor)
    {}


private:
    void BeginWriteFlash() override;
    void EndWriteFlash() override;
    void ClearFlash() override;
    void WriteFlash16bitsAppend(uint16_t _data) override;
};
#endif //MOTOR_S_ENCODER_CALIBRATOR_STM32_H
